package com.sx.art2.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.sx.art2.beans.Auction;
import com.sx.art2.tools.Page;

public interface AuctionMapper {
	
	void insert(Auction auction);
	List<Auction> selectByArtId(int artId);
	List<Auction> selectByauctionInfoId(int auctionInfoId);
	List<Auction> selectByUserId(int userId);
	//分页查询
	List<Auction> pageSelectByArtId(@Param("artId") int artId,@Param("page") Page page);
	List<Auction> pageSelectByUserId(@Param("userId") int userId,@Param("page") Page page);
	//按artId查询记录总条数
	int getArtCountByartId(@Param("artId") int artId);
	//更新最高价
	void updateTopPriceState(@Param("auctionInfoId") int auctionInfoId);

}
